wayland: Fix x/y coordinate arguments on wl_data_device events
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 21 Aug 2014 17:01:32 +0000 (19:01 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 26 Aug 2014 12:46:13 +0000 (14:46 +0200)
Those are wl_fixed_t, not int.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

gdk/wayland/gdkdevice-wayland.c

index 5fd63410b449e6a87acc5cea4f5413e6026d01ff..a44f384dc328576de27f3e4518b6cb8fb2c2eb43 100644 (file)
@@ -574,8 +574,8 @@ data_device_enter (void                  *data,
                    struct wl_data_device *data_device,
                    uint32_t               serial,
                    struct wl_surface     *surface,
-                   int32_t                x,
-                   int32_t                y,
+                   wl_fixed_t             x,
+                   wl_fixed_t             y,
                    struct wl_data_offer  *offer)
 {
   GdkWaylandDeviceData *device = (GdkWaylandDeviceData *)data;
@@ -607,8 +607,8 @@ static void
 data_device_motion (void                  *data,
                     struct wl_data_device *data_device,
                     uint32_t               time,
-                    int32_t                x,
-                    int32_t                y)
+                    wl_fixed_t             x,
+                    wl_fixed_t             y)
 {
   g_debug (G_STRLOC ": %s data_device = %p, time = %d, x = %d, y = %d",
            G_STRFUNC, data_device, time, x, y);